﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Timesheet.Domain
{
    [Table("tb_TimeSheets")]
    public class TimeSheets
    {
        public TimeSheets()
        {
            From = To = DateTime.Now;
            Status = "0";
            Week = From.ToShortDateString() + " - " + To.ToShortDateString();
            Ticket = 0;
        }
        [Key]
        public Int64 Id { get; set; }
        public Int64 ProjectID { get; set; }
        public Int64 TeamID { get; set; }       
        public DateTime From { get; set; }
        public DateTime To { get; set; }
        public string Week { get; set; }
        public string Status { get; set; }
        public Int64 ApprovedBy { get; set; }
        public bool Active { get; set; }
        public Int64 CreateBy { get; set; }
         public string Level { get; set; }
         public int Ticket { get; set; }

         [NotMapped]
         public int Role { get; set; }
    }
}
